package com.yunfeng.master.controller;


import com.yunfeng.master.api.UserApi;
import com.yunfeng.master.app.IUserService;
import com.yunfeng.master.common.utils.Result;
import lombok.RequiredArgsConstructor;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequiredArgsConstructor
public class UserController implements UserApi {

    private final IUserService userService;

    @Override
    public Result getAllUsers() {
        return Result.success(userService.getAllUsers());
    }
}
